home *** CD-ROM | disk | FTP | other *** search
/ SGI Enlighten DSM 1.1 / SGI EnlightenDSM 1.1.iso / hp10x / common.z / common / scripts / user.rc
Text File  |  1998-06-30  |  676b  |  38 lines

  1. #
  2. #  Copyright (c) 1990-1998 Enlighten Software Solutions, Inc.
  3. #             -- All Rights Reserved --
  4. #
  5.  
  6. # Arg 1: gecos (realname, telephone, office)
  7. # Arg 2: home directory
  8. # Arg 3: uid
  9. # Arg 4: gid
  10. # Arg 5: shell
  11. # Arg 6: login name
  12.  
  13. #
  14. # Copy default initialization scripts into HOME directory
  15. #    /etc/d.cshrc
  16. #    /etc/d.exrc
  17. #    /etc/d.login
  18. #    /etc/d.profile
  19. #
  20.  
  21. # NOTE: if the parameter CREATEHOMEDIR == 0
  22. # then the home directory may not exist when
  23. # this script executes
  24.  
  25. if test -d $2 ; then
  26.     for i in /etc/d.*
  27.     do
  28.         /bin/cp $i "$2"/.`echo $i | /usr/bin/awk -F. '{ print $2 }'`
  29.     done
  30.  
  31.     if test -f /etc/vuerc
  32.     then
  33.         /bin/cp /etc/vuerc "$2"/.vue
  34.     fi
  35. fi
  36.  
  37. exit 0
  38.